package com.sport.service;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;

/**
 * 微信小程序远程调用接口
 * @author: 开心摆烂
 * @date : 2024-12-05
 */

@HttpExchange(value = "https://api.weixin.qq.com", accept = "application/json",contentType = "application/json")
public interface MiniHttpService {

    //微信小程序登录接口
    @GetExchange("/sns/jscode2session?grant_type=authorization_code")
    String login(@RequestParam String appid, @RequestParam String secret, @RequestParam("js_code") String code);


}
